<?php
/**
 *
 *
 * @author 说图谱网
 * @url http://www.shuotupu.com/
 */
defined('IN_IA') or exit('Access Denied');

class kundian_farmModule extends WeModule {
    public function index(){
        $url=url('site/entry/index',array('m'=>'kundian_farm','op'=>'index'));
        message('',$url);
//        $servername = trim($_SERVER['SERVER_NAME']);
//        $url = 'http://yun.cqkundian.com/domian.php?domain='.$servername;
//        $ch = curl_init();
//        curl_setopt ($ch, CURLOPT_URL, $url);
//        curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
//        curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT,10);
//        $result = curl_exec($ch);
//        if($result=='true'){
//            $url=url('site/entry/index',array('m'=>'kundian_farm','op'=>'index'));
//            message('',$url);
//        }else{
//            message('站点未授权','./index.php?c=wxapp&a=version&do=home&version_id=345');
//        }
    }
}
$result=new kundian_farmModule();
$result->index();